import { createSSRApp } from 'vue'
import App from './App.vue'
import request from "@/utils/request.js"
import uviewPlus from 'uview-plus'

export function createApp() {
  const app = createSSRApp(App)

  // 正确挂载全局对象
  app.config.globalProperties.$axios = request

  // 正确使用 uview-plus
  app.use(uviewPlus)

  return { app }
}
